package com.sykj.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @ClassName Result
 * @Description TODO 响应结果集
 * @Author sykj
 * @Date 2019/6/28 16:10
 * @Version 1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class Result implements Serializable {

    /**
     * 状态码
     **/
    private Integer code;

    /**
     * 状态 是否成功
     **/
    private Boolean flag;

    /**
     * 提示信息
     **/
    private String message;

    /**
     * 响应数据
     **/
    private Object data;

}
